﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/Store/Store.Master" AutoEventWireup="true" CodeBehind="PurchaseOrderDetails.aspx.cs" Inherits="ADSMS.Presentation.Store.PurchaseOrderDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container">
        <div class="jumbotron">
            <div class="row">
                <div class="col-lg-12">
                    <div class="well">
                        <div class="bs-example form-horizontal">
                            <fieldset>
                                <legend>Purchase Order Detail
                                </legend>
                                <div class="bs-component">
                                    <div class="form-group">
                                        <div class="col-lg-3">
                                            Supplier Name
                                        </div>
                                        <div class="col-lg-2">
                                            <asp:Label ID="lblsname" runat="server" />
                                        </div>
                                        <br />
                                    </div>

                                    <div class="bs-component">
                                        <div class="form-group">
                                            <div class="col-lg-3">
                                                Request Employee Name
                                            </div>
                                            <div class="col-lg-2">
                                                <asp:Label ID="lblrename" runat="server" />
                                            </div>
                                        </div>
                                        <br />
                                    </div>

                                    <div class="bs-component">
                                        <div class="form-group">
                                            <div class="col-lg-3">
                                                Request Date
                                            </div>
                                            <div class="col-lg-2">
                                                <asp:Label ID="lblRDate" runat="server" />
                                            </div>
                                        </div>
                                        <br />
                                    </div>

                                    <div class="bs-component">
                                        <div class="form-group">
                                            <div class="col-lg-3">
                                                Deliver Address
                                            </div>
                                            <div class="col-lg-2">
                                                <asp:Label ID="lbladdress" runat="server" />
                                            </div>
                                        </div>
                                        <br />
                                    </div>
                                    <div class="bs-component">
                                        <div class="form-group">
                                            <div class="col-lg-3">
                                                Request Deliver Date
                                            </div>
                                            <div class="col-lg-2">
                                                <asp:Label ID="lblrddate" runat="server" />
                                            </div>
                                        </div>
                                        <br />
                                    </div>
                                    <div class="bs-component">
                                        <div class="form-group">
                                            <div class="col-lg-3">
                                                Receive Date
                                            </div>
                                            <div class="col-lg-2">
                                                <asp:Label ID="lblrecdate" runat="server" />
                                            </div>
                                        </div>
                                        <br />
                                    </div>

                                </div>
                                <hr />
                                <div class="col-lg-12">
                                    <div>

                                        <asp:GridView ID="gvPO" runat="server" AutoGenerateColumns="False"  AllowPaging="true" PageSize="1" EmptyDataText="No Data!"
                                            CssClass="table table-striped table-hover" HeaderStyle-CssClass="danger" RowStyle-CssClass="info" OnPageIndexChanging="gvPO_PageIndexChanging">
                                            <Columns>
                                                <asp:TemplateField HeaderText="No">
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                                <ItemStyle Width="2%" />
                                            </asp:TemplateField>
                                                <asp:BoundField DataField="POID" HeaderText="POID" ReadOnly="True" SortExpression="POID" />
                                                <asp:BoundField DataField="POItemID" HeaderText="POItemID" ReadOnly="True" SortExpression="POItemID" />
                                                <asp:BoundField DataField="ItemDescription" HeaderText="ItemDescription" ReadOnly="True" SortExpression="ItemDescription" />
                                                <asp:BoundField DataField="POItemQuant" HeaderText="POItemQuant"  ReadOnly="True" SortExpression="POItemQuant" />
                                                <%--<asp:BoundField DataField="POStatus" HeaderText="POStatus" ReadOnly="True" SortExpression="POStatus" />--%>
                                                
                                            </Columns>

                                            <HeaderStyle CssClass="danger"></HeaderStyle>

                                            <RowStyle CssClass="info"></RowStyle>
                                        </asp:GridView>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-lg-offset-0">
                                            <asp:Button ID="btnConfirm" class="btn btn-primary" runat="server" Visible="false" Text="Confirm" OnClick="btnConfirm_Click" />
                                            <asp:Button ID="btnBack" class="btn btn-primary" runat="server" Text="Back" OnClick="btnBack_Click" />
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
